package hlhj.fhp.newslib.activitys

import android.util.Log
import com.shuyu.gsyvideoplayer.utils.GSYVideoHelper
import hlhj.fhp.newslib.BaseAty
import hlhj.fhp.newslib.R
import kotlinx.android.synthetic.main.aty_ad_player.*

/**
 * Created by Never Fear   on 2018\10\30 0030.
Never More....
 */
class TestAdPlaer :BaseAty() {
    override fun initListener() {
    }

    override fun initView() {
        val builder = GSYVideoHelper.GSYVideoHelperBuilder()
        builder
                .setUrl("http://www.scmxtv.com/application/hlhj_news/uploads/video/20181023/29a6106ff8f5cf772f37dd30f4d1baca.mp4")
                .setAutoFullWithSize(true)
                .setCacheWithPlay(true)
                .build(emPlayer)
        val builder1 = GSYVideoHelper.GSYVideoHelperBuilder()
        builder1
                .setUrl("http://www.scmxtv.com/application/hlhj_news/uploads/video/20181023/29a6106ff8f5cf772f37dd30f4d1baca.mp4")
                .setAutoFullWithSize(true)
                .setCacheWithPlay(true)
        btPlay.setOnClickListener {
            Log.e("fhp","点击了")
            emPlayer.startPlayLogic()
        }
    }
    override fun getContentId(): Int {
        return R.layout.aty_ad_player
    }
}